﻿// =============================================
// Author:		Oğuz Kurumlu
// Create date: <Create Date,,>
// Description:	<Description,,>
// =============================================

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bosphorus.Migrator.Core.Extractor
{
    public class CompositeExtractor<TReturn> : IExtractor<TReturn>
    {
        private readonly IExtractor<TReturn>[] extractors;

        public CompositeExtractor(params IExtractor<TReturn>[] extractors)
        {
            this.extractors = extractors;
        }

        public void Extract(TReturn output)
        {
            foreach (IExtractor<TReturn> extractor in extractors)
            {
                extractor.Extract(output);
            }
        }
    }
}